﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CC98.Security
{
    /// <summary>
    /// CC98 Certificate
    /// </summary>
    public sealed class CC98Certificate
    {
        private static CC98Certificate _anonymousCertificate = new CC98Certificate();

        public static CC98Certificate AnonymousCertificate
        {
            get
            {
                return _anonymousCertificate;
            }
        }

        public CC98Certificate(string username, string password)
        {
            this.Username = username;
            this.Password = password;
        }

        private CC98Certificate()
        {
            this.IsAnonymous = true;
        }

        public bool IsAnonymous { get; private set; }

        public string Username { get; private set; }

        internal string Password { get; private set; }
    }
}
